package org.xg.study.pd.test;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.xg.study.pd.IUserDao;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName ApiTest12_00
 * @date 2021/9/15 16:50
 **/
public class ApiTest12_00 {
    private Logger logger = LoggerFactory.getLogger(ApiTest12_00.class);

    @Test
    public void test_IUserDao() {
        BeanFactory beanFactory = new ClassPathXmlApplicationContext("spring-config.xml");
        IUserDao userDao = beanFactory.getBean("userDao", IUserDao.class);
        String res = userDao.queryUserInfo("100001");
        logger.info("测试结果：{}", res);
    }
}
